import Vue from 'vue'
import VueRouter from 'vue-router'
import Parenting from '../components/lanmu/Parenting.vue'
import Travelstar from '../components/lanmu/Travelstar.vue'
import Sport from '../components/lanmu/Sport.vue'
import Rock from '../components/lanmu/Rock.vue'
import Kuchipudi from '../components/lanmu/Kuchipudi.vue'
import Drama from '../components/lanmu/Drama.vue'
import Index from '../components/lanmu/Index.vue'
import Lanmu from '../views/Lanmu.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/lanmu',
    name: 'Lanmu',
    component: Lanmu,
    children: [
      {
        path: '',
        name: 'Parenting',
        component: Parenting
      },
      {
        path: 'parenting',
        name: 'Parenting',
        component: Parenting
      },
      {
        path: 'travelstar',
        name: 'Travelstar',
        component: Travelstar
      },
      {
        path: 'sport',
        name: 'Sport',
        component: Sport
      },
      {
        path: 'rock',
        name: 'Rock',
        component: Rock
      },
      {
        path: 'kuchipudi',
        name: 'Kuchipudi',
        component: Kuchipudi
      },
      {
        path: 'drama',
        name: 'Drama',
        component: Drama
      },
      {
        path: 'index',
        name: 'Index',
        component: Index
      },
    ]
    
  },
  {

  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path:'/select',
    name:'selectSeat',
    component:function () {  
      return import('@/views/selectSeat.vue');
    }
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
